package gui;


import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Panel;
import java.awt.Toolkit;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JWindow;

class SplashWindow3 extends JFrame
{
    public SplashWindow3()
    {
        super();
        this.setUndecorated(true);
//        JLabel l = new JLabel();
        gui.blockFriend bf=new blockFriend();
  //      getContentPane().add(l, BorderLayout.CENTER);
        getContentPane().add(bf, BorderLayout.CENTER);
        pack();
        Dimension screenSize =
          Toolkit.getDefaultToolkit().getScreenSize();
       // Dimension labelSize = l.getPreferredSize();
        setLocation(screenSize.width/2 - (bf.getWidth()/2),
                    screenSize.height/2 - (bf.getHeight()/2));
        setVisible(true);
        screenSize = null;
      //  labelSize = null;
    }
    
  
}